package com.example.github.io;

import java.io.IOException;

public class BufferReaderStreamTest {
    public static void main(String[] args) throws IOException {
        /*
        // 1. 创建  BufferedReader 对象
        // 2. 将字节转换成字符流
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        // 读取字符串
        String str = reader.readLine();
        // 读取整型数字
        int num = Integer.parseInt(reader.readLine());
        System.out.println(str);
        System.out.println(num);
         */

        /*
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String name;
        try {
            System.out.println("Entry your name");
            name = bufferedReader.readLine();
            System.out.println("your name is " + name);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
         */
    }
}
